package com.shop.zkmall.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家信息表
 * </p>
 *
 * @author ${author}
 * @since 2025-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cere_buyer_merchant")
@ApiModel(value="CereBuyerMerchant对象", description="商家信息表")
public class CereBuyerMerchant implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "商户名称")
    @NotBlank(message = "商户名称不能为空")
    private String merchantName;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "地区")
    @NotBlank(message = "地区不能为空")
    private String area;

    @ApiModelProperty(value = "身份证证件")
    @NotBlank(message = "身份证不能为空")
    private String legalCard;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "VAT证书URL")
    private String vatCertificate;

    @ApiModelProperty(value = "营业执照URL")
    private String businessLicense;

    @ApiModelProperty(value = "状态：1待审核 2审核通过 3审核拒绝")
    private Integer status;

    @ApiModelProperty(value = "审核拒绝原因")
    private String cause;

    @ApiModelProperty(value = "分类ID")
    private Long classifyId;

    @ApiModelProperty(value = "分类名称")
    private String classifyName;

    @ApiModelProperty(value = "商家头像")
    private String avatar;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "发货地址")
    private String deliveryAddress;

    @ApiModelProperty(value = "商家二维码")
    private String qrCode;

    @ApiModelProperty(value = "营业状态 0营业中 1休息中 2停止营业")
    private Integer businessStatus;


}
